﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using PizzaService.Entities;

namespace PizzaService.Model
{
    public class PizzaViewModel : ViewModelBase
    {
        /// <summary>
        /// Zutaten
        /// </summary>
        private ObservableCollection<Zutat> m_Zutaten;
        public ObservableCollection<Zutat> Zutaten
        {
            get { return m_Zutaten; }
            set
            {
                if (value != m_Zutaten)
                {
                    this.m_Zutaten = value;
                    RaisePropertyChanged(() => Zutaten);
                }
            }
        }
        /// <summary>
        /// Bestellungen
        /// </summary>
        public Bestellung Bestellung { get; set; }

        //private ObservableCollection<Speise> m_Speisen;
        //public ObservableCollection<Speise> Speisen
        //{
        //    get { return m_Speisen; }
        //    set
        //    {
        //        if (value != m_Speisen)
        //        {
        //            this.m_Speisen = value;
        //            RaisePropertyChanged(() => Speisen);
        //        }
        //    }
        //}


        /// <summary>
        /// Kunden
        /// </summary>
        private ObservableCollection<Kunde> m_Kunden;
        public ObservableCollection<Kunde> Kunden
        {
            get { return m_Kunden; }
            set
            {
                if (value != m_Kunden)
                {
                    this.m_Kunden = value;
                    RaisePropertyChanged(() => Kunden);
                }
            }
        }
        /// <summary>
        /// Pizza
        /// </summary>
        private ObservableCollection<Speise> m_Pizza;
        public ObservableCollection<Speise> Pizzen
        {
            get { return m_Pizza; }
            set
            {
                if (value != m_Pizza)
                {
                    this.m_Pizza = value;
                    RaisePropertyChanged(() => Pizzen);
                }
            }
        }
        /// <summary>
        /// Pasta
        /// </summary>
        private ObservableCollection<Speise> m_Pasta;
        public ObservableCollection<Speise> Pasta
        {
            get { return m_Pasta; }
            set
            {
                if (value != m_Pasta)
                {
                    this.m_Pasta = value;
                    RaisePropertyChanged(() => Pasta);
                }
            }
        }
        /// <summary>
        /// Salate
        /// </summary>
        private ObservableCollection<Speise> m_Salat;
        public ObservableCollection<Speise> Salate
        {
            get { return m_Salat; }
            set
            {
                if (value != m_Salat)
                {
                    this.m_Salat = value;
                    RaisePropertyChanged(() => Salate);
                }
            }
        }
        /// <summary>
        /// Bestellungen
        /// </summary>
        private ObservableCollection<Bestellung> m_Bestellungen;
        public ObservableCollection<Bestellung> Bestellungen
        {
            get { return m_Bestellungen; }
            set
            {
                if (value != m_Bestellungen)
                {
                    this.m_Bestellungen = value;
                    RaisePropertyChanged(() => Bestellungen);
                }
            }
        }
        
    }
}
